package langchain4j.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import langchain4j.entity.Doctor;
import langchain4j.entity.DoctorSchedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DoctorMapper extends BaseMapper<Doctor> {

    List<Doctor> selectDoctorListByPage(
            @Param("offset") int offset,
            @Param("size") int size,
            @Param("name") String name,
            @Param("title") String title,
            @Param("department") String department  // 新增参数
    );

    int countDoctorList(@Param("name") String name,@Param("title") String title,@Param("department") String department);

    List<DoctorSchedule> getDoctorSchedule(String doctorName);
}
